package com.buba.system.service.impl;

import com.buba.system.dao.MenuMapper;
import com.buba.system.pojo.SystemMenu;
import com.buba.system.pojo.SystemUser;
import com.buba.system.pojo.SystemUserRole;
import com.buba.system.service.MenuService;
import org.apache.dubbo.config.annotation.DubboService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.awt.*;
import java.util.*;
import java.util.List;

@Service    //@Service 用在服务提供者中，在类或者接口中声明
@DubboService   //暴露服务
public class MenuServiceImpl implements MenuService {
    private MenuMapper menuMapper;

    @Override
    public Collection<? extends String> selRoleByRoleName(String roleName) {
        return menuMapper.selRoleByRoleName(roleName);
    }

    @Override
    public List<SystemMenu> selMenu() {
        return menuMapper.selMenu();
    }

    @Override
    public List<SystemMenu> selMenuById(Integer menuId) {
        return menuMapper.selMenuById(menuId);
    }

    @Autowired
    public void setMenuMapper(MenuMapper menuMapper) {
        this.menuMapper = menuMapper;
    }



}
